package com.logistics.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NonNull;

//import javax.validation.constraints.Email;
import java.time.LocalDateTime;

@Data
public class Admin {
    @NonNull
    private Integer id;
    private String adminname;
//    @JsonIgnore//隐藏密码
    private String password;
    private Integer phonenumber;
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
    @NonNull
//    @Email
//    private String email;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", admin_name='" + adminname + '\'' +
                ", admin_password='" + password + '\'' +
                ", phone_number='" + phonenumber + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime;
    }

}
